<?php
define('SALT_LENGTH', 30);
class Home extends Controller {
    
	function Home(){
		parent::Controller();
		$this->load->library('layout','template/admin');
	    $this->layout->setLayout('template/admin');
		$this->load->helper(array('form','url','file'));
        $this->load->library('authentication');
	}
	
	function index(){
		$data = array();
		$data['hi'] = 'hola mundo';
		$this->layout->view("home/lista", $data);
		echo 'Hola Mundo';
		//Home::janne();
	}
	function janne(){
		//echo 'hola janne';
	}
	function verify(){

        $username = $this->input->post('username');
        $password = $this->input->post('password');
		
		$result_ = $this->authentication->login($username, $password_encry);
		redirect('home');
    }
	function verifyLogin()
	{
		$authentication = new Authenticationsa();
		$user_id = $this->session->userdata('user_id');
		if(empty($user_id))
		{
			redirect('login');
		}
	}
}
?>